package com.joysuch.wwyt.streampusher;

import com.joysuch.wwyt.bp.bean.BpSystemVideoAddBean;

/**
 * 摄像头品牌
 */
public enum VideoBrandEnum {

    /**
     * 大华
     */
    DAHUA,
    /**
     * 海康
     */
    HAIKANG,

    OTHER;

    public static VideoBrandEnum parseFromSystemVideo(BpSystemVideoAddBean video){
        if("海康".equalsIgnoreCase(video.getBrand())){
            return HAIKANG;
        }else if("大华".equalsIgnoreCase(video.getBrand())){
            return DAHUA;
        }else{
            return OTHER;
        }
    }
}
